<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-09 10:07:06
 * @LastEditTime: 2019-10-18 11:02:17
 * @LastEditors: Please set LastEditors
 -->
<template>
  <div id="app">
    <router-view v-if="isReloadAlive"></router-view>
  </div>
</template>

<script>
import Watermark from './watermark'
import {get_my_info} from './api/api.js'
export default {
  name: "App",
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      isReloadAlive: true,
    };
  },
  mounted: function () {
    // var user_id=''
    // var xinxi=''
    // if (sessionStorage.getItem("data_mobal") != null) {
    //   user_id = JSON.parse(
    //     JSON.parse(sessionStorage.getItem("data_mobal"))
    //   ).user_id;
    // }
    // get_my_info({data:{
    //   user_id:user_id
    // }}).then(res=>{
    //   if(res.data.code==10069){
    //     var xin=JSON.parse(res.data.body.data)
    //     if(xin.name!=undefined&&xin.mobile!=0){
    //       xinxi=xin.name+xin.mobile.slice(7)
    //       Watermark.set("美丽报表"+xinxi)
    //     }else{
    //       Watermark.set("美丽报表")
    //     }
    //   }else if(res.data.code==10070){
    //     this.$toast('获取信息失败')
    //   }
    // })
  },
  methods: {
    reload() {
      this.isReloadAlive = false;
      this.$nextTick(function() {
        this.isReloadAlive = true;
      });
    }
  }
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
  font-family: "微软雅黑";
  font-size: 0.12rem;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
.v-modal {
  opacity: 0.4;
}
.van-picker{
  border-radius: 0.08rem 0.08rem 0 0;
}
.van-picker__toolbar{
  border-bottom: 0.01rem solid #eee;
}
.van-picker__confirm{
  color:#e82716;
  font-size: 0.14rem;
}
.van-picker__cancel{
  color:rgba(255, 255, 255, 0);
  background: url('./assets/shut.png')no-repeat;
  background-position:center center;
  background-size: 46%;
}
.mint-msgbox {
  height: 1.2rem;
  width: 2.4rem;
}
.mint-msgbox-header {
  padding: 0.08rem 0 0 0;
}
.mint-msgbox-title {
  color: #1a2533;
  font-size: 0.14rem;
  font-weight: 500;
}
.mint-msgbox-message {
  color: #888;
  font-size: 0.13rem;
  line-height: 0;
  margin-top: 0.23rem;
  font-weight: normal;
}
.mint-msgbox-content {
  border-bottom: 0rem solid #fff;
}
.mint-msgbox-cancel {
  border-right: 0.01rem solid #fff;
  color: #a5c6fd;
  font-size: 0.14rem;
  margin-top: -0.16rem;
}
.mint-msgbox-confirm {
  color: #a5c6fd;
  font-size: 0.14rem;
  margin-top: -0.16rem;
}
.mint-popup-bottom{
  border-radius: 0.1rem 0.1rem 0 0;
}
.mint-popup{
  border-radius: 0.06rem;
}
.van-field__control{
  height:1rem!important;
}
</style>
